package pojo;

import lombok.Data;

import java.io.Serializable;

public class RentalRecord implements Serializable {
    private int record_id;//记录ID
    private int customer_id;//顾客ID
    private int car_id;//车辆ID
    private String  start_date;//租赁开始时间
    private String  end_date;//租赁结束时间
    private int  rental_fee;//租金
    private String rental_status;//订单状态（进行中，已完成，已取消）
    private int  rental_days;//租车天数

    public RentalRecord(int record_id, int customer_id, int car_id, String start_date, String end_date, int rental_fee, String rental_status, int rental_days) {
        this.record_id = record_id;
        this.customer_id = customer_id;
        this.car_id = car_id;
        this.start_date = start_date;
        this.end_date = end_date;
        this.rental_fee = rental_fee;
        this.rental_status = rental_status;
        this.rental_days = rental_days;
    }

    @Override
    public String toString() {
        return "RentalRecord{" +
                "record_id=" + record_id +
                ", customer_id=" + customer_id +
                ", car_id=" + car_id +
                ", start_date='" + start_date + '\'' +
                ", end_date='" + end_date + '\'' +
                ", rental_fee=" + rental_fee +
                ", rental_status='" + rental_status + '\'' +
                ", rental_days=" + rental_days +
                '}';
    }

    public int getRecord_id() {
        return record_id;
    }

    public void setRecord_id(int record_id) {
        this.record_id = record_id;
    }

    public int getCustomer_id() {
        return customer_id;
    }

    public void setCustomer_id(int customer_id) {
        this.customer_id = customer_id;
    }

    public int getCar_id() {
        return car_id;
    }

    public void setCar_id(int car_id) {
        this.car_id = car_id;
    }

    public String getStart_date() {
        return start_date;
    }

    public void setStart_date(String start_date) {
        this.start_date = start_date;
    }

    public String getEnd_date() {
        return end_date;
    }

    public void setEnd_date(String end_date) {
        this.end_date = end_date;
    }

    public int getRental_fee() {
        return rental_fee;
    }

    public void setRental_fee(int rental_fee) {
        this.rental_fee = rental_fee;
    }

    public String getRental_status() {
        return rental_status;
    }

    public void setRental_status(String rental_status) {
        this.rental_status = rental_status;
    }

    public int getRental_days() {
        return rental_days;
    }

    public void setRental_days(int rental_days) {
        this.rental_days = rental_days;
    }

    public RentalRecord() {

    }
}
